<template>
  <div class="loading">
    <img src="./loading.gif" alt="">
    <p>{{title}}</p>
  </div>
</template>
<script>
export default {
  name: 'Loading',
  props: {
    title: {
      type: String,
      default: '正在载入...'
    }
  }
}
</script>
<style lang="scss" scoped>
@import 'common/scss/variable.scss';
  .loading{
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 99;
    img{
      width: 0.5rem;
      height: 0.5rem;
    }
    p{
      font-size: $font-size-medium;
      color: #ccc;
    }
  }
</style>
